home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 25 / MacFormat n. 25 (Spain) / MacFormat 25.bin / mac / Demos / Print Artist Demo / PA12-Mac.Dxr / 00342.ls < prev    next >
Encoding:
Text File  |  1996-10-03  |  678 b   |  24 lines

  1. on exitFrame
  2.   global playMode, loadNext, mainPageWait, subPageWait
  3.   startTimer()
  4.   unLoadCast()
  5.   if (playMode = "64KMemOK") or (playMode = "PPCMemOK") then
  6.     if ramNeeded(label("calturn") - 1, label("cal4") + 4) < (the freeBlock - 1000) then
  7.       preLoad(label("Calturn"), label("cal4") + 4)
  8.       set loadNext to 0
  9.     else
  10.       preLoad(label("Calturn") - 1, label("Calturn") + 6)
  11.       set loadNext to 1
  12.     end if
  13.     if the timer < mainPageWait then
  14.       wait(mainPageWait - the timer)
  15.     end if
  16.     go(#next)
  17.   else
  18.     preLoad(label("Calturn"), label("Calturn") + 2)
  19.     preLoad(label("Calturn") + 5, label("Calturn") + 6)
  20.     wait(30)
  21.     go(#next)
  22.   end if
  23. end
  24.